package dragon.core.io;

public class LogicFile {
	/**
	 * 文件id
	 */
	private int fileid;

	/**
	 * 文件pid
	 */
	private int filepid;

	/**
	 * 文件深度
	 */
	private int depth;

	/**
	 * 文件名
	 */
	private String name;

	/**
	 * 文件大小
	 */
	private int size;

	/**
	 * 文件长度
	 */
	private long sizeL;

	/**
	 * 文件创建时间
	 */
	private String createTime;

	/**
	 * 文件修改时间
	 */
	private String lastModifyTime;

	/**
	 * 文件修改时间(long)
	 */
	private long lastModifyTimeL;

	/**
	 * 是否文件夹
	 */
	private boolean isFolder;

	/**
	 * 文件存储路径
	 */
	private String path;

	@Override
	public String toString() {
		return String.format("路径：%s\t文件名：%s\t大小：%d\t是否文件夹：%s\t创建时间：%s\t修改时间：%s\t", path, name, size, isFolder, createTime, lastModifyTime);
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public boolean isFolder() {
		return isFolder;
	}

	public void setFolder(boolean isFolder) {
		this.isFolder = isFolder;
	}

	public String getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(String lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public long getLastModifyTimeL() {
		return lastModifyTimeL;
	}

	public void setLastModifyTimeL(long lastModifyTimeL) {
		this.lastModifyTimeL = lastModifyTimeL;
	}

	public long getSizeL() {
		return sizeL;
	}

	public void setSizeL(long sizeL) {
		this.sizeL = sizeL;
	}

	public int getFileid() {
		return fileid;
	}

	public void setFileid(int fileid) {
		this.fileid = fileid;
	}

	public int getFilepid() {
		return filepid;
	}

	public void setFilepid(int filepid) {
		this.filepid = filepid;
	}

	public int getDepth() {
		return depth;
	}

	public void setDepth(int depth) {
		this.depth = depth;
	}
}
